package com.sl.au.entity;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Column;

@Entity
@Table(name = "sl_au_attachment")
public class Attachment extends Root {

	@Column(name = "sParentId", nullable = false)
	private String parentId;
	
	@Column(name = "sGroupId")
	private String groupId;
	/**
	 * 保存在硬盘上的文件名称，用以下载定位
	 */
	@Column(name = "sSavedFileName")
	private String savedFileName;
	/**
	 * 正常的文件名称，有以作为下载的文件名称
	 */
	@Column(name = "sOriginalFileName")
	private String originalFileName;
	@Column(name = "sFileSize")
	private Double fileSize;
	/**
	 * 文件大小单位B,K,M,G
	 */
	@Column(name = "sSizeUnit")
	private String sizeUnit;
	
	@Column(name = "sSender")
	private String sender;
	
	@Column(name = "dUploadDate")
	@Temporal(TemporalType.TIMESTAMP)
	
	private java.util.Date uploadDate;

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	public String getSavedFileName() {
		return savedFileName;
	}

	public void setSavedFileName(String savedFileName) {
		this.savedFileName = savedFileName;
	}

	public Double getFileSize() {
		return fileSize;
	}

	public void setFileSize(Double fileSize) {
		this.fileSize = fileSize;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public java.util.Date getUploadDate() {
		return uploadDate;
	}

	public void setUploadDate(java.util.Date uploadDate) {
		this.uploadDate = uploadDate;
	}

	public String getOriginalFileName() {
		return originalFileName;
	}

	public void setOriginalFileName(String originalFileName) {
		this.originalFileName = originalFileName;
	}

	public String getSizeUnit() {
		return sizeUnit;
	}

	public void setSizeUnit(String sizeUnit) {
		this.sizeUnit = sizeUnit;
	}

}